package org;

public class demo {
    String str = new String("good");
    char[] ch = {'a','b','c'};

    public static void main(String[] args) throws ClassNotFoundException {
      String a = "NICE_CAMEL";
      String b = "A_Good_IDEA";
      String c = "FaceBook";
      toUpFen(a);
      toUpFen(b);
      toUpFen(c);

    }
    abstract  interface  aa{

    }
    protected static String toUpFen(String item){
        item = item.toLowerCase();
        String[] letters = item.split("_");
        String newItem = letters[0];
        for (int i = 1;i< letters.length;i++){
            newItem = newItem+letters[i].substring(0,1).toUpperCase()+letters[i].substring(1);
        }
        System.out.println("item="+newItem);
        return newItem;
    }

}
